package com.example.yifei.ui.page.main.home

import android.util.Log
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class HomeViewModel @Inject constructor() : ViewModel() {
    val list = ArrayList<HomeViewItemBean>()

    /**
     * 初始化
     */
    init {
        Log.e("TAG", "------- init ")
        list.add(HomeViewItemBean("生产需求", "待确认", "1"))
        list.add(HomeViewItemBean("采购列表", "待确认", "0"))
        list.add(HomeViewItemBean("采购列表", "待支用", "1"))
        list.add(HomeViewItemBean("采购列表", "申请异常", "1"))
    }


}


data class HomeViewItemBean(
    val name: String,
    val state: String,
    val number: String

)




